import http from './http'
export const Article = params => {
    return http.post('/article', params)
}

export const getArticle = params => {
    return http.get(`/article/${params}`)

}
export const getLike = params => {
    return http.get('/like', {
        params
    })
}
export const getTools = () => {
    return http.get('/tools')
}

export const getComment = params => {
    return http.get('/comment', {
      params
    })
}
export  const submitComments = params => {
    return http.post('/comment', params)
}